<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/dlp.proto

namespace Google\Cloud\Dlp\V2beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Summary of a single tranformation.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.TransformationSummary</code>
 */
class TransformationSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * Set if the transformation was limited to a specific info_type.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     */
    private $info_type = null;
    /**
     * Set if the transformation was limited to a specific FieldId.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     */
    private $field = null;
    /**
     * The specific transformation these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     */
    private $transformation = null;
    /**
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     */
    private $field_transformations;
    /**
     * The specific suppression option these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     */
    private $record_suppress = null;
    /**
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     */
    private $results;

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Dlp::initOnce();
        parent::__construct();
    }

    /**
     * Set if the transformation was limited to a specific info_type.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\InfoType
     */
    public function getInfoType()
    {
        return $this->info_type;
    }

    /**
     * Set if the transformation was limited to a specific info_type.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.InfoType info_type = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\InfoType $var
     * @return $this
     */
    public function setInfoType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\InfoType::class);
        $this->info_type = $var;

        return $this;
    }

    /**
     * Set if the transformation was limited to a specific FieldId.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     * @return \Google\Cloud\Dlp\V2beta1\FieldId
     */
    public function getField()
    {
        return $this->field;
    }

    /**
     * Set if the transformation was limited to a specific FieldId.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.FieldId field = 2;</code>
     * @param \Google\Cloud\Dlp\V2beta1\FieldId $var
     * @return $this
     */
    public function setField($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\FieldId::class);
        $this->field = $var;

        return $this;
    }

    /**
     * The specific transformation these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PrimitiveTransformation
     */
    public function getTransformation()
    {
        return $this->transformation;
    }

    /**
     * The specific transformation these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PrimitiveTransformation transformation = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PrimitiveTransformation $var
     * @return $this
     */
    public function setTransformation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PrimitiveTransformation::class);
        $this->transformation = $var;

        return $this;
    }

    /**
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFieldTransformations()
    {
        return $this->field_transformations;
    }

    /**
     * The field transformation that was applied. This list will contain
     * multiple only in the case of errors.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.FieldTransformation field_transformations = 5;</code>
     * @param \Google\Cloud\Dlp\V2beta1\FieldTransformation[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFieldTransformations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\FieldTransformation::class);
        $this->field_transformations = $arr;

        return $this;
    }

    /**
     * The specific suppression option these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     * @return \Google\Cloud\Dlp\V2beta1\RecordSuppression
     */
    public function getRecordSuppress()
    {
        return $this->record_suppress;
    }

    /**
     * The specific suppression option these stats apply to.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.RecordSuppression record_suppress = 6;</code>
     * @param \Google\Cloud\Dlp\V2beta1\RecordSuppression $var
     * @return $this
     */
    public function setRecordSuppress($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\RecordSuppression::class);
        $this->record_suppress = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResults()
    {
        return $this->results;
    }

    /**
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult results = 4;</code>
     * @param \Google\Cloud\Dlp\V2beta1\TransformationSummary_SummaryResult[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\TransformationSummary_SummaryResult::class);
        $this->results = $arr;

        return $this;
    }

}

